import request from "@/utils/request";

/**
 * 查询邮件发送方配置列表
 * @param params
 * @returns
 */
 function getEmailList(data) {
  return request({
    url: '/management/email.email_config/getList',
    method: 'post',
    data
  })
}
/**
 * 添加邮件发送方配置
 * @param params
 * @returns
 */
function getEmailAdd(data) {
    return request({
      url: '/management/email.email_config/add',
      method: 'post',
      data
    })
  }
/**
 * 删除一条邮件发送方配置
 * @param params
 * @returns
 */
function getEmailDel(data) {
    return request({
      url: '/management/email.email_config/del',
      method: 'post',
      data
    })
  }
  /**
 * 修改邮件发送方配置
 * @param params
 * @returns
 */
function getEmailUpdate(data) {
    return request({
      url: '/management/email.email_config/update',
      method: 'post',
      data
    })
  }

/**
 * 查询邮件消息模板列表
 * @param params
 * @returns
 */
function getMesList(data) {
    return request({
      url: '/management/email.email_template/getList',
      method: 'post',
      data
    })
  }
/**
 * 添加邮件消息模板
 * @param params
 * @returns
 */
function getMesAdd(data) {
    return request({
      url: '/management/email.email_template/add',
      method: 'post',
      data
    })
  }
  /**
 * 删除邮件消息模板
 * @param params
 * @returns
 */
function getMesdel(data) {
    return request({
      url: '/management/email.email_template/del',
      method: 'post',
      data
    })
  }
  /**
 * 添加邮件消息模板
 * @param params
 * @returns
 */
function getMesUpdate(data) {
    return request({
      url: '/management/email.email_template/update',
      method: 'post',
      data
    })
  }
    /**
 * 查询一条邮件消息模
 * @param params
 * @returns
 */
function getFind(data) {
  return request({
    url: '/management/email.email_template/getFind',
    method: 'post',
    data
  })
}
export{
    getEmailList,
    getEmailDel,
    getEmailUpdate,
    getEmailAdd,
    getMesList,
    getMesAdd,
    getMesdel,
    getMesUpdate,
    getFind
}